﻿@model MvcMusicStore.Models.Album
<p>
    @Html.LabelFor(model => model.Genre)
    @Html.DropDownList("GenreId", 
        new SelectList(ViewBag.Genres as System.Collections.IEnumerable, 
        "GenreId", "Name", Model.GenreId))
</p>
<p>
    @Html.LabelFor(model => model.Artist)
    @Html.DropDownList("ArtistId", 
        new SelectList(ViewBag.Artists as System.Collections.IEnumerable, 
        "ArtistId", "Name", Model.ArtistId))
</p>
<p>
    @Html.LabelFor(model => model.Title)
    @Html.TextBoxFor(model => model.Title)
    @Html.ValidationMessageFor(model => model.Title)
</p>
<p>
    @Html.LabelFor(model => model.Price)
    @Html.TextBoxFor(model => model.Price)
    @Html.ValidationMessageFor(model => model.Price)
</p>
<p>
    @Html.LabelFor(model => model.AlbumArtUrl)
    @Html.TextBoxFor(model => model.AlbumArtUrl)
    @Html.ValidationMessageFor(model => model.AlbumArtUrl)
</p>